<!DOCTYPE html>
<html  lang="zh-cmn-Hans">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="format-detection" content="telephone=no,email=no,date=no,address=n">
  <meta name="viewport"
    content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>app</title>
  <% var files = htmlWebpackPlugin.files; %>
  <% var chunks = files.chunks; %>
  <% for (var chunk in chunks) { %>
    <% var css = chunks[chunk].css %>
    <% if(css.length > 0){ %>
      
      <% for (var index in css) { %>
        <% var cs = css[index] ;%>
        <% if(chunk.indexOf('chunk') == 0){ %>
          <link rel="stylesheet" href="<%= cs %>">
        <% }else{ %>
          <% var cssText = compilation.assets[cs.substr(files.publicPath.length)]&&compilation.assets[cs.substr(files.publicPath.length)].source();%>
          <style url="<%=cs %>"><%= cssText.replace(/\.\./g,'.') %></style>
          <% delete compilation.assets[cs.substr(files.publicPath.length)] %>
        <% } %>
      <% } %>
    <% } %>

  <% } %>
</head>

<body>
  <div id="app"></div>
  <% for (var chunk in chunks) { %>
    <% var entry = chunks[chunk].entry %>
    <% if(chunk.indexOf('chunk') == 0){ %>
      <script src="<%= entry %>"></script>
    <% }else{ %>
      <% var jsText = compilation.assets[entry.substr(files.publicPath.length)]&&compilation.assets[entry.substr(files.publicPath.length)].source()%>
      <script><%= jsText.replace(/\.\./g,'.') %></script>
      <% delete compilation.assets[entry.substr(files.publicPath.length)] %>
    <% } %>

  <% } %>

</body>
<div></div>

</html>